package com.ruoyi.project.student.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class Student {

    @TableId(value = "id",type = IdType.AUTO)
    public Long id;

    @NotBlank(message = "姓名不能为空！")
    public String name;

    @NotBlank(message = "学号不能为空！")
    public String num;

    public Long classId;

}
